function result() {
	var self;
	this.getParams = new getParams();
}

result.prototype = {
	openid:'',
	sequence:'',
	comp_id:'',
	meet_id:'',
	init:function() {
		self = this;
		self.openid = self.getParams.getQueryString("openid");
        self.sequence = self.getParams.getQueryString("sequence");
        self.comp_id = self.getParams.getQueryString("comp_id");
        self.meet_id = self.getParams.getQueryString("meet_id");
		self.bindEvent();
	},
	bindEvent:function() {
		$("#onceAgain").on("click",self.onceAgain);
		$("#show").on("click",self.showMask);
		$("#mask").on("click",self.hideMask);
	},
	onceAgain:function() {
        var url = "http://"+window.location.host + "/tug/mobile/chooseSide";
        window.location.href = url + "?meet_id=" + self.meet_id + "&sequence=" + self.sequence + "&comp_id=" + self.comp_id + "&openid=" + self.openid ;
	},
	showMask:function() {
		var obj = $("#mask")[0];
			obj.style.webkitTransform = "translate3d(0,100%,0)";
			obj.style.transform = "translate3d(0,100%,0)";
	},
	hideMask:function() {
		var obj = $("#mask")[0];
			obj.style.webkitTransform = "translate3d(0,0,0)";
			obj.style.transform = "translate3d(0,0,0)";
	},
	_request_data:function(url,data,callback,errorCallback) {
		$.ajax({
			type:"post",
			url:url,
			dataType:"json",
			data:data,
			success:function(ret) {
				callback && callback(ret);
			},
			error:function() {
				errorCallback && errorCallback();
			}
		})
	},
	
}

$(function() {
	var objA = new result();
	objA.init();
});